﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using BestLifePOS_Core.Data.Commands;
using BestLifePOS_Core.DomainObjects;

namespace BestLifePOS_Core.Data.Facades
{
  public  class Franchise_PaymentDAO
    {

      public static string GetNewFranchiserPayId()
      {
          BestLifeGetNewFranchiserPayIdDataAction LvGet = new BestLifeGetNewFranchiserPayIdDataAction();
          return LvGet.execute();
      }

      public static List<Franchise_Payment> GetFranchiseAvailableBalance(string PFrnId)
      {
          BestLifeGetFrnBalanceByFrnIdDataAction LvGet = new BestLifeGetFrnBalanceByFrnIdDataAction(PFrnId);
          return LvGet.execute();
      }

      public static int SaveFranchisePay(Franchise_Payment PFrnpay)
      {
          BestLifeInsertFranchisePaymentsDataAction LvGet = new BestLifeInsertFranchisePaymentsDataAction(PFrnpay);
          return LvGet.execute();
      }

      public static List<Franchise_Payment> GetFranchisePayByFrnId(string PFrnId, DateTime PFrom, DateTime PTo)
      {
          BestLifeFranchisePayByFrnIDDataAction LvGet = new BestLifeFranchisePayByFrnIDDataAction(PFrnId, PFrom, PTo);
          return LvGet.execute();
      }
    }
}
